package com.jyw.activity;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;

/**
 * @author simonw
 * @version 1.0
 * @created 2016/12/29
 */

public class BaseActivity extends AppCompatActivity {
    private SharedPreferences mSharedPrfs;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        mSharedPrfs = getApplication().getSharedPreferences("jyw", Context.MODE_PRIVATE);
        super.onCreate(savedInstanceState);
    }

    protected SharedPreferences getPrefs() {
        return mSharedPrfs;
    }
}
